<script type="text/javascript">
	function doSearchDate(){   
		$('#dg').datagrid('load',{   
			date1: $('#dd1').datebox("getValue"),   
			date2: $('#dd2').datebox("getValue")
		}); 
	}
</script>

<table id="dg" title="用车费用统计" class="easyui-datagrid"
		url="<?php echo url('ordercar','sum')?>"
		toolbar="#toolbar" pagination="false"
		rownumbers="true" showFooter="true" fitColumns="true" fit="true" singleSelect="true">
	<thead>
		<tr>
			<th field="date1" width="50">开始日期</th>
			<th field="date2" width="50">结束日期</th>
			<th field="uname" width="50">用车人</th>
			<th field="times" width="50">用车次数</th>
			<th field="sum_estimated" width="50">预估总额</th>
			<th field="sum_real" width="50">实际总额</th>
		</tr>
	</thead>
</table>
<div id="toolbar" style="padding:5px;height:auto">
	<div style="margin-bottom:5px">
		<label>按日期范围：</label><input id="dd1" name="dd1" class="easyui-datebox" /><label>至</label><input id="dd2" name="dd2" class="easyui-datebox" />
		<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearchDate()">重新统计</a>
	</div>
</div>